#!/bin/bash

set -e

SCRIPT_DIR=$(cd `dirname $0` && pwd)
cd $SCRIPT_DIR

rm -rf ./_install

cd RtspServer
git reset --hard

cp ../Makefile.rtsp_server_yi ./Makefile
#sed -i 's/O_FLAG = -O2/O_FLAG = -Os/g' Makefile
#sed -i 's/CXX_FLAGS += -std=c++11/CXX_FLAGS += -Os -std=c++11/g' Makefile
